package com.ykq.system.controller;

import com.ykq.pojo.dto.CommonResult;
import com.ykq.system.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: education-parent
 * @description:
 * @author: 闫克起2
 * @create: 2022-08-04 10:00
 **/
@RestController
@RequestMapping("/system/permission")
public class PermissionController {

    @Autowired
    private PermissionService permissionService;

    @GetMapping("/leftMenu")
    public CommonResult leftMenu(){
        return permissionService.selectMenuByUserId();
    }
}
